<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="sec"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ page session="false" contentType="text/html;charset=UTF-8"%>
<%response.setHeader("Pragma","No-cache"); 
response.setHeader("Cache-Control","no-cache"); 
response.setDateHeader("Expires", 0); 
response.flushBuffer();%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><s:message code="secure.index.module.order"/></title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
</head>
<body>
	<!-- 业务预受理单 -->
    <sec:authorize access="hasAnyRole('PER_ORDER_ACCEPT','ROLE_CUSTOMER_ADMIN')">
		<div class="mainbox">
			<h1><s:message code="secure.intercative.bussness.progress"/></h1>
			<div align="right" style="width: 100%;">
				<a href="#" onclick="$('#business').click();" style="color: blue;"><s:message code="business.more"/></a>
			</div>
			<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
				<thead>
					<tr>
						<td width="20%" align="center" bgcolor="#718EA9" style="color: #fff"><s:message code="business.productType"/></td>
						<td width="40%" align="center" bgcolor="#718EA9" style="color: #fff"><s:message code="business.productAttr"/></td>
						<td width="25%" align="center" bgcolor="#718EA9" style="color: #fff"><s:message code="business.applyTime"/></td>
						<td width="15%" align="center" bgcolor="#718EA9" style="color: #fff"><s:message code="business.auditFlag"/></td>
					</tr>
				</thead>
				<tbody align="center">
					<c:forEach items="#{acceptList}" var="item" begin="0" end="4">
						<tr>
							<td>${item.productName}</td>
							<td>
								${item.productAttrList}
							</td>
							<td><fmt:formatDate value="${item.createTime}" type="date" pattern="yyyy-MM-dd HH:mm:ss"/></td>
							<td>
								<c:if test="${item.auditFlag == '0'}"><s:message code="business.auditFlag.waitAudit"/></c:if>
								<c:if test="${item.auditFlag == '1'}"><s:message code="business.auditFlag.pass"/></c:if>
								<c:if test="${item.auditFlag == '-1'}"><s:message code="business.auditFlag.didNotPass"/></c:if>
							</td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>
	</sec:authorize>
	<!-- 故障受理单 -->
    <sec:authorize access="hasAnyRole('PER_TROUBLE_ACCEPT','ROLE_CUSTOMER_ADMIN')">
		<div class="mainbox">
			<h1><s:message code="secure.intercative.trouble.progress"/></h1>
			<div align="right" style="width: 100%;">
				<a href="#" onclick="$('#trouble').click();" style="color: blue;"><s:message code="business.more"/></a>
			</div>
			<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
				<thead>
					<tr>
						<td width="20%" align="center" bgcolor="#718EA9" style="color: #fff"><s:message code="business.productType"/></td>
						<td width="40%" align="center" bgcolor="#718EA9" style="color: #fff"><s:message code="secure.intercative.trouble.deacription"/></td>
						<td width="25%" align="center" bgcolor="#718EA9" style="color: #fff"><s:message code="secure.public.accept.time"/></td>
						<td width="15%" align="center" bgcolor="#718EA9" style="color: #fff"><s:message code="business.auditFlag"/></td>
					</tr>
				</thead>
				<tbody align="center">
					<c:forEach items="#{troubleList}" var="item" begin="0" end="4">
						<tr>
							<td>${item.pTypeName}</td>
							<td>
								${item.detail}
							</td>
							<td><fmt:formatDate value="${item.createTime}" type="date" pattern="yyyy-MM-dd HH:mm:ss"/></td>
							<td>
								<c:if test="${item.status == '0'}"><s:message code="business.auditFlag.waitAudit"/></c:if>
								<c:if test="${item.status == '1'}"><s:message code="business.auditFlag.pass"/></c:if>
								<c:if test="${item.status == '-1'}"><s:message code="business.auditFlag.didNotPass"/></c:if>
							</td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>
	</sec:authorize>
	<!-- 流量分时图 -->
	<sec:authorize access="hasAnyRole('PER_REPORT_TIME','ROLE_CUSTOMER_ADMIN')">
		<div class="mainbox">
			<h1 style="width:200px"><s:message code="secure.index.module.report.time"/></h1>
			<div align="right" style="width: 100%;">
				<a href="#" onclick="$('#reportTime').click();" style="color: blue;"><s:message code="business.more"/></a>
			</div>
			<iframe src="<c:url value="/secure/report/reportTimeMain" />"   width="100%" height="430" frameborder="0"></iframe>
		</div>
	</sec:authorize>
		<!-- 流量月报表 -->
	<sec:authorize access="hasAnyRole('PER_REPORT_MONTH','ROLE_CUSTOMER_ADMIN')">
		<div class="mainbox">
			<h1 style="width:160px;"><s:message code="secure.index.module.report.month"/></h1>
			<div align="right" style="width: 100%;">
				<a href="#" onclick="$('#reportMonth').click();" style="color: blue;"><s:message code="business.more"/></a>
			</div>
			
			<iframe src="<c:url value="/secure/report/reportMonthMain" />"   width="100%" height="380" frameborder="0" ></iframe>
		</div>
	</sec:authorize>



</body>
</html>
